package com.csg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 角色-资源-关联表
 * </p>
 *
 * @author George Chan
 * @since 2020-02-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_role_resources")
public class RoleResources implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键 id
     */
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 角色表ID
     */
    @TableField("role_id")
    private String roleId;

    /**
     * 资源表id
     */
    @TableField("resources_id")
    private String resourcesId;

    /**
     * 添加时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 删除标记 0-未删除 1-已删除
     */
    @TableField("delete_flag")
    private Integer deleteFlag;


}
